﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.DynamicData;

namespace NotAClue.ComponentModel.DataAnnotations
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class TipAttribute : Attribute
    {
        public TipAttribute()
        {
            ShowIcon = false;
        }

        public TipAttribute(String title, String tip)
        {
            Title = title;
            Tip = tip;
            ShowIcon = true;
        }

        public TipAttribute(String title, String tip, Boolean showIcon)
        {
            Title = title;
            Tip = tip;
            ShowIcon = showIcon;
        }

        public TipAttribute(String tip)
        {
            Title = "";
            Tip = tip;
            ShowIcon = false;
        }

        public TipAttribute(String tip, Boolean showIcon)
        {
            Title = "";
            Tip = tip;
            ShowIcon = showIcon;
        }

        public static TipAttribute Default = new TipAttribute("", false);

        public String Title { get; set; }
        public String Tip { get; set; }
        public Boolean ShowIcon { get; set; }
    }
}
